import { MockMethod } from "vite-plugin-mock";

export default [
  {
    url: "/purchase/getPurchaseApproval",
    method: "post",
    response: () => {
      return {
        success: true,
        code: 200,
        msg: "123",
        data: {
          list: [
            {
              id: "123",
              name: "some",
              total_price: 200.0,
              dept_id: "111",
              dept_name: "yf5s",
              emp_id: "444",
              apply_name: "ggg",
              apply_date: "2022020800002",
              users_name: "vvv",
              status: "1",
              memo: "nothing"
            },
            {
              id: "123",
              name: "some",
              total_price: 200.0,
              dept_id: "111",
              dept_name: "yf5s",
              emp_id: "444",
              apply_name: "ggg",
              apply_date: "2022020800003",
              users_name: "vvv",
              status: "1",
              memo: "nothing"
            },
            {
              id: "123",
              name: "some",
              total_price: 200.0,
              dept_id: "111",
              dept_name: "yf5s",
              emp_id: "444",
              apply_name: "ggg",
              apply_date: "2022020800001",
              users_name: "vvv",
              status: "1",
              memo: "nothing"
            },
            {
              id: "123",
              name: "some",
              total_price: 200.0,
              dept_id: "111",
              dept_name: "yf5s",
              emp_id: "444",
              apply_name: "ggg",
              apply_date: "2022020800001",
              users_name: "vvv",
              status: "1",
              memo: "nothing"
            },
            {
              id: "123",
              name: "some",
              total_price: 200.0,
              dept_id: "111",
              dept_name: "yf5s",
              emp_id: "444",
              apply_name: "ggg",
              apply_date: "2022020800001",
              users_name: "vvv",
              status: "1",
              memo: "nothing"
            }
          ]
        }
      };
    }
  }
] as MockMethod[];
